home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 5 / Gold Medal Software - Volume 5 (Gold Medal) (1995).iso / utils1 / forag200.arj / SAFE.BAT < prev    next >
DOS Batch File  |  1994-12-26  |  3KB  |  73 lines

  1. @ECHO OFF
  2. ECHO OFF
  3. CLS
  4. ECHO ██▀█▀█▀█▀█▀█▀█▀█▀█▀█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀██
  5. ECHO █▌█ █ █ █ █ █ █ █ █▐   SAFE - THE QUICK BACKUP UTILITY   ▌█ █ █ █ █ █ █ █ █ █▐█
  6. ECHO ██▄█▄█▄█▄█▄█▄█▄█▄█▄█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄██
  7.  
  8. REM ───────────────────────────────────────────────────────────────────────
  9. REM Check for interrupted backup
  10. REM
  11.  
  12. IF NOT EXIST SAFE$$$$\*.* GOTO EOCKINT
  13. DIR SAFE$$$$ \W
  14. ECHO █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  SAFE -- THE QUICK BACKUP UTILITY  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
  15. ECHO ▌  SAFE's temporary directory (SAFE$$$$) has been found here, and it      ▐
  16. ECHO ▌  contains some files.  In order to continue, the files must be deleted. ▐
  17. ECHO █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
  18. GETKEY Delete the files?  (Press N to cancel if you are not sure)  Y@N
  19. IF ERRORLEVEL 2 GOTO QUIT
  20. ECHO Y | DEL SAFE$$$$\*.*
  21. RD SAFE$$$$
  22. :EOCKINT
  23.  
  24. REM ───────────────────────────────────────────────────────────────────────
  25. REM See if we need to create dummy files
  26. REM
  27. CD A:\
  28. IF EXIST A:SAFE?.ZIP GOTO BACKUP
  29.  
  30. REM ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
  31. REM Check that this is a blank disk
  32. REM
  33. IF NOT EXIST A:*.* GOTO EOCKBLK
  34. DIR A: /W
  35. ECHO The A: drive appears to contain something other than a standard SAFE
  36. ECHO disk.  Standard SAFE disks contain one or more files named SAFE#.ZIP.
  37. GOTO QUIT
  38. :EOCKBLK
  39.  
  40. REM ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
  41. REM Create dummy files
  42. REM  
  43. CLS
  44. ECHO █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  SAFE -- THE QUICK BACKUP UTILITY  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
  45. ECHO ▌                                                                         ▐
  46. ECHO ▌ Since you have put a blank diskette in the A: drive, we will now create ▐
  47. ECHO ▌ three ZIP files there.   This will let SAFE maintain a cycle of three   ▐
  48. ECHO ▌ backups of your directory.  You should have at least two diskettes set  ▐
  49. ECHO ▌ aside for each directory you want to backup with SAFE.                  ▐
  50. ECHO ▌                                                                         ▐
  51. ECHO ▌ If you ever find that one of the SAFE disks does not have enough room   ▐
  52. ECHO ▌ for three ZIP files, you can delete one or more and SAFE will continue  ▐
  53. ECHO ▌ to use the disk without problem, as long as there is at least one file  ▐
  54. ECHO ▌ with a name like SAFE#.ZIP (example:  SAFE1.ZIP).                       ▐
  55. ECHO ▌                                                                         ▐
  56. ECHO █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
  57. GETKEY Continue?  YN
  58. IF ERRORLEVEL 2 GOTO QUIT
  59. ECHO Refer to SAFE.BAT >A:SAFE1.ZIP
  60. ECHO Refer to SAFE.BAT >A:SAFE2.ZIP
  61. ECHO Refer to SAFE.BAT >A:SAFE3.ZIP
  62.  
  63. REM ───────────────────────────────────────────────────────────────────────
  64. REM Do the backup
  65. REM
  66. :BACKUP
  67. FORAGE O A:\SAFE?.ZIP SAFE2.BAT FROMSAFE @@ %1
  68.  
  69. REM ───────────────────────────────────────────────────────────────────────
  70. REM The End
  71. REM
  72. :QUIT
  73.